Solve[E^(-g)==-a g +1, g]

?ProductLog

12 12